//
//  EFAutoScrollTableCell.m
//  EnjogFood
//
//  Created by 王芳 on 17/5/1.
//  Copyright © 2017年 wf. All rights reserved.
//

#import "EFAutoScrollTableCell.h"
#import "EFAutoScorllItem.h"
#import "ICWholeIntroduceView.h"

@interface EFAutoScrollTableCell ()
@property (strong, nonatomic) ICWholeIntroduceView *view;
@end

@implementation EFAutoScrollTableCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (CGFloat)tableView:(UITableView *)tableView rowHeightForItem:(ICTableViewItem *)item{
    return 200;
}

- (void)setObject:(NSMutableArray *)itemArray{
    self.view = [[ICWholeIntroduceView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200)];
    [self.view updateUI:itemArray];
    [self addSubview:self.view];
}

- (void)scrollStop{
    [self.view stop];
}

@end
